package com.xinyue.game.common;

/**
 * @Author 王广帅
 * @Date 2020/12/26 20:34
 */
public class GameException extends RuntimeException {

    private IServerError error;

    public GameException(IServerError error, String errorMsg) {
        super(errorMsg);
        this.error = error;
    }

    public IServerError getError() {
        return error;
    }
}
